@size: 26px;

.make-circle {
    width: @size;
    height: @size;
    line-height: @size;
    border-radius: 50%;
    text-align: center;
    border-width: 2px;
}

.cursor {
    cursor: pointer;
    user-select: none;
}

.pseudo-icon {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    box-sizing: border-box;
    border: 3px solid;
    border-color: #aeaeae #aeaeae rgba(0, 0, 0, 0) rgba(0, 0, 0, 0);
    position: relative;
    top: 7px;
    transform-origin: center;
}

.wdu-pagination {
    .wdu-flex();
    flex-grow: 1;
    align-items: center;
    justify-content: center;
    padding: 5px;

    &__total {
        color: #3e3e3e;
        font-size: 14px;
        flex-shrink: 0;
        margin-right: 20px;
    }

    &__listContainer {
        display: flex;
        flex-flow: row nowrap;
    }

    &__prev,
    &__next {
        .wdu-border-light();
        .make-circle();
        .cursor();
        .wdu-bg-plain();

        &::before {
            .pseudo-icon();
        }
    }

    &__prev {
        margin-right: 12px;

        &::before {
            left: 10px;
            transform: rotate(-135deg);
        }
    }

    &__next {
        margin-left: 12px;

        &::before {
            left: 6px;
            transform: rotate(45deg);
        }
    }

    &__list {
        display: flex;
        flex-flow: row nowrap;
        padding: 0;
        margin: 0;

        &-item {
            .wdu-bg-plain();
            .wdu-border-light();
            .make-circle();
            .wdu-text-small();
            .cursor();
            list-style: none;
            margin: 0 3px;
            transition: all 0.2s cubic-bezier(0.075, 0.82, 0.165, 1);

            &:hover {
                border-color: #6383c6;
            }
        }

        &-selected {
            .wdu-bg-important();
            color: white;
        }
    }

    &__prevSpan,
    &__nextSpan {
        .wdu-border-light();
        .make-circle();
        .cursor();
        .wdu-bg-plain();
        display: flex;

        &::before {
            .pseudo-icon();
        }

        &::after {
            .pseudo-icon();
        }
    }

    &__prevSpan {
        margin-right: 12px;

        &::before {
            left: 6px;
            transform: rotate(-135deg);
        }

        &::after {
            right: -2px;
            transform: rotate(-135deg);
        }
    }

    &__nextSpan {
        margin-left: 12px;

        &::before {
            left: 0px;
            transform: rotate(45deg);
        }

        &::after {
            right: 4px;
            transform: rotate(45deg);
        }
    }

    &__option {
        display: flex;
        flex-flow: row nowrap;
        align-items: center;

        &-disabled {
            cursor: not-allowed;
            opacity: 0.5;
        }

        .wdu-select {
            margin: 0 10px;

            .wdu-select__input {
                width: 100px;
            }
        }

        .wdu-input-container {
            width: 65px;
        }
    }
}
